package com.soar.recruitment.module.user.bll.api;


import com.soar.framework.app.FrameworkConstants;
import com.soar.recruitment.common.bll.SOARBaseHttpApi;
import com.soar.recruitment.common.bll.SOARHttpCallback;

import java.util.Map;

public class UserApi {

    /**
     * 用户注册发送验证验证码
     */
    public void registerCode (String tag, Map<String, String> params, SOARHttpCallback soarHttpCallback) {
        String url = FrameworkConstants.HOST + "/api/auth/register/code";
        SOARBaseHttpApi.getInstance().doHttpPost(url, params, tag, soarHttpCallback);
    }

    /**
     * 用户注册
     */
    public void register (String tag, Map<String, String> params, SOARHttpCallback soarHttpCallback) {
        String url = FrameworkConstants.HOST + "/api/auth/register";
        SOARBaseHttpApi.getInstance().doHttpPost(url, params, tag, soarHttpCallback);
    }

    /**
     * 编辑用户资料
     */
    public void updateMember () {
        String url = FrameworkConstants.HOST + "/api/member";
    }

    /**
     * 设置新用户密码
     */
    public void setpassword () {
        String url = FrameworkConstants.HOST + "/api/member/password";
    }

    /**
     * 用户登录
     */
    public void login (String tag, Map<String, String> params, SOARHttpCallback soarHttpCallback) {
        String url = FrameworkConstants.HOST + "/api/auth/login";
        SOARBaseHttpApi.getInstance().doHttpPost(url, params, tag, soarHttpCallback);
    }

    /**
     * 忘记密码发送验证码
     */
    public void resetPasswordCode (String tag, Map<String, String> params, SOARHttpCallback soarHttpCallback) {
        String url = FrameworkConstants.HOST + "/api/auth/reset/password/code";
        SOARBaseHttpApi.getInstance().doHttpPost(url, params, tag, soarHttpCallback);
    }

    /**
     * 重置密码
     */
    public void resetPassword () {
        String url = FrameworkConstants.HOST + "/api/auth/reset/password";
    }
    /**
     * 安全密码
     */
    public void authPassword () {
        String url = FrameworkConstants.HOST + "/api/auth/password";
    }

    /**
     * 更换邮箱
     */
    public void changeEmail () {
        String url = FrameworkConstants.HOST + "/api/auth/change/email";
    }

}
